﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace RestFulService
{
    public class MenuItem
    {
        /// <summary>
        /// 
        /// </summary>
        public string code { get; set; }
        /// <summary>
        /// 成功
        /// </summary>
        public string msg { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public Content content { get; set; }

        public class Content
        {
            /// <summary>
            /// 菜单版本
            /// </summary>
            public string menuVersion { get; set; }

            /// <summary>
            /// 
            /// </summary>
            public List<MenuCategoryTreeDTOItem> menuCategoryTreeDTO { get; set; }
            
        }
        
        //结构：菜品大类+菜品小类+菜品
        //普通菜品：口味列表
        //套餐商品：套餐列表+各个商品口味列表
        public class MenuCategoryTreeDTOItem
        {
            /// <summary>
            /// 
            /// </summary>
            public int categoryId { get; set; }
            /// <summary>
            /// 
            /// </summary>
            public string categoryName { get; set; }
            /// <summary>
            /// 菜品小类
            /// </summary>
            public List<ChildrenItem> children { get; set; }
        }

        //菜品小类
        public class ChildrenItem
        {
            /// <summary>
            /// 
            /// </summary>
            public int categoryId { get; set; }
            /// <summary>
            /// 
            /// </summary>
            public string categoryName { get; set; }
            /// <summary>
            /// 菜品列表
            /// </summary>
            public List<SaleProductVoListItem> saleProductVoList { get; set; }
        }

        //菜品列表
        public class SaleProductVoListItem
        {
            /// <summary>
            /// 商品编号
            /// </summary>
            public string customerCode { get; set; }
            /// <summary>
            /// 商品条码
            /// </summary>
            public string erpCode { get; set; }
            /// <summary>
            /// 商品名称
            /// </summary>
            public string productName { get; set; }
            /// <summary>
            /// 
            /// </summary>
            public int status { get; set; }
            /// <summary>
            /// 
            /// </summary>
            public string stock { get; set; }
            /// <summary>
            /// 最终售价
            /// </summary>
            public decimal finalPrice { get; set; }
            /// <summary>
            /// 会员价
            /// </summary>
            public decimal memberPrice { get; set; }
            /// <summary>
            /// 促销价格
            /// </summary>
            public decimal promotionPrice { get; set; }
            /// <summary>
            /// 商品图片
            /// </summary>
            public string picture { get; set; }
            /// <summary>
            /// 商品类型: 0 普通商品 , 2 套餐商品
            /// </summary>
            public string type { get; set; }
            /// <summary>
            /// 该商品口味列表
            /// </summary>
            public List<SkuAttrGroupsItem> skuAttrGroups { get; set; }
            /// <summary>
            /// 套餐明细列表
            /// </summary>
            public List<ProductGroupDTOListItem> productGroupDTOList { get; set; }
            /// <summary>
            /// 
            /// </summary>
            public string materialClassIdLarge { get; set; }
            /// <summary>
            /// 
            /// </summary>
            public string materialClassIdMid { get; set; }
            /// <summary>
            /// 
            /// </summary>
            public string materialClassIdSmall { get; set; }
            /// <summary>
            /// 
            /// </summary>
            public int allowFeedWayFlag { get; set; }
            /// <summary>
            /// 单位
            /// </summary>
            public string unitName { get; set; }
            /// <summary>
            /// 
            /// </summary>
            public string addPriceBuyLog { get; set; }
            /// <summary>
            /// 
            /// </summary>
            public int fdiscflag { get; set; }
        }
               
        //菜品口味列表
        public class SkuAttrGroupsItem
        {
            /// <summary>
            /// 
            /// </summary>
            public string skuId { get; set; }
            /// <summary>
            /// 口味分类编号
            /// </summary>
            public string groupId { get; set; }
            /// <summary>
            /// 口味分类名称
            /// </summary>
            public string groupName { get; set; }
            /// <summary>
            /// 
            /// </summary>
            public int choices { get; set; }
            /// <summary>
            /// 
            /// </summary>
            public int required { get; set; }
            /// <summary>
            /// 
            /// </summary>
            public List<PropertyListItem> propertyList { get; set; }
        }

        //口味具体列表
        public class PropertyListItem
        {
            /// <summary>
            /// 
            /// </summary>
            public string groupId { get; set; }
            /// <summary>
            /// 
            /// </summary>
            public string propertyId { get; set; }
            /// <summary>
            /// 标准
            /// </summary>
            public string propertyName { get; set; }
            /// <summary>
            /// 
            /// </summary>
            public int feedFlag { get; set; }
            /// <summary>
            /// 
            /// </summary>
            public string feedId { get; set; }
            /// <summary>
            /// 
            /// </summary>
            public string feedName { get; set; }
            /// <summary>
            /// 
            /// </summary>
            public string salePrice { get; set; }
            /// <summary>
            /// 
            /// </summary>
            public string feedNum { get; set; }
            /// <summary>
            /// 口味加价金额
            /// </summary>
            public int addPrice { get; set; } 
            /// <summary>
            /// 是否默认选中 0是
            /// </summary>
            public int defaultFlag { get; set; }
        }

        //套餐列表
        public class ProductGroupDTOListItem
        {
            /// <summary>
            /// 
            /// </summary>
            public string productId { get; set; }
            /// <summary>
            /// 
            /// </summary>
            public int allowRepeat { get; set; }
            /// <summary>
            /// 
            /// </summary>
            public string groupId { get; set; }
            /// <summary>
            /// 主食
            /// </summary>
            public string groupName { get; set; }
            /// <summary>
            /// 套餐列表
            /// </summary>
            public List<SkuInfoDTOListItem> skuInfoDTOList { get; set; }
            /// <summary>
            /// 
            /// </summary>
            public string minGroupSalePrice { get; set; }
            /// <summary>
            /// 
            /// </summary>
            public string sequence { get; set; }
            /// <summary>
            /// 
            /// </summary>
            public int groupItemNum { get; set; }
            /// <summary>
            /// 
            /// </summary>
            public int maxNumber { get; set; }
            /// <summary>
            /// 
            /// </summary>
            public int minNumber { get; set; }
            /// <summary>
            /// 
            /// </summary>
            public int must { get; set; }
        }

        //套餐列表
        public class SkuInfoDTOListItem
        {
            /// <summary>
            /// 商品编号
            /// </summary>
            public string customerCode { get; set; }
            /// <summary>
            /// 条码
            /// </summary>
            public string erpCode { get; set; }
            /// <summary>
            /// 
            /// </summary>
            public string onlineName { get; set; }
            /// <summary>
            /// 
            /// </summary>
            public string superiorId { get; set; }
            /// <summary>
            /// 
            /// </summary>
            public string skuId { get; set; }

            /// <summary>
            /// 
            /// </summary>
            public string subtitle { get; set; }
            /// <summary>
            /// 
            /// </summary>
            public string materialCategoryId { get; set; }
            /// <summary>
            /// 
            /// </summary>
            public string materialClassIdMid { get; set; }
            /// <summary>
            /// 
            /// </summary>
            public string materialClassIdSmall { get; set; }
            /// <summary>
            /// 
            /// </summary>
            public string picture { get; set; }
            /// <summary>
            /// 盒
            /// </summary>
            public string saleUnit { get; set; }
            /// <summary>
            /// 
            /// </summary>
            public int saleStatus { get; set; }
            /// <summary>
            /// 
            /// </summary>
            public string productSalesRange { get; set; }
            /// <summary>
            ///  商品原价
            /// </summary>
            public decimal salePrice { get; set; }
            /// <summary>
            /// 
            /// </summary>
            public decimal promotionPrice { get; set; }
            /// <summary>
            /// 加价金额
            /// </summary>
            public decimal addPrice { get; set; }
            /// <summary>
            /// 该商品口味列表
            /// </summary>
            public List<SkuAttrGroupsItem> skuAttrGroups { get; set; }
            /// <summary>
            /// 数量
            /// </summary>
            public int qty { get; set; }
            /// <summary>
            /// 
            /// </summary>
            public string qualityNum { get; set; }
            /// <summary>
            /// 
            /// </summary>
            public string qualityNumType { get; set; }
            /// <summary>
            /// 商品类型
            /// </summary>
            public string type { get; set; }
        }

    }

    
}
